package com.green.configfile.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

//第一种方式Configuration+value
@Data
@Configuration
public class SttConfig {

    @Value("${stt.name}")
    private String name;
    @Value("${stt.age}")
    private String age;
    @Value("${stt.sex}")
    private String sex;

    public void getInfo(){
        System.out.println(name);
        System.out.println(age);
        System.out.println(sex);
    }


}
